/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.telaPrincipal;

import javax.swing.text.AttributeSet;  
import javax.swing.text.BadLocationException;  
import javax.swing.text.PlainDocument;  
  
public class UpperCaseDocument extends PlainDocument {  
    @Override  
    public void insertString(int offset, String str, AttributeSet attr)   
    throws BadLocationException {  
      super.insertString(offset, str.toUpperCase(), attr);  
    }  
}  
